<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('金相图谱详情')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-metallographic-edit" th:object="${knowledgeSytMetallographicSpectrumInfo}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">零件名：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${@dict.getLabel('sys_part', knowledgeSytMetallographicSpectrumInfo.partName)}">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">材料种类：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${@dict.getLabel('sys_material', knowledgeSytMetallographicSpectrumInfo.materialType)}">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">材料牌号：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${knowledgeSytMetallographicSpectrumInfo.materialGrade}">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">试样状态：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${@dict.getLabel('sys_material', knowledgeSytMetallographicSpectrumInfo.sampleStatus)}">
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">组织特征：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${knowledgeSytMetallographicSpectrumInfo.microstructureFeatures}">
                    </div>

                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">附件：</label>
                <div class="col-sm-8">
                    <div class="form-control-static">
                        <img th:src="${knowledgeSytMetallographicSpectrumInfo.attachmentPath}" class="attachment-detail-img">
                    </div>

                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "knowledge/metallographic";
        $("#form-metallographic-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-metallographic-edit').serialize());
            }
        }
    </script>
</body>
</html>